﻿#nullable enable
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Application.Core.Entity;
using Furion.DataValidation;

namespace Application.Core.Dto;
    
public record UserDto(int Id, [DataValidation(ValidationTypes.EnglishName, ErrorMessage = "UserName 必须为英文名称类型")]string UserName, string PasswordHash, string? DisplayName, bool IsDisabled, DateTime CreatedAt, List<Permission?>? Permissions);
public record UserCreateDto(string UserName, string PasswordHash, string? DisplayName, bool IsDisabled = false);
public record UserUpdateDto(string UserName, string? PasswordHash, string? DisplayName, bool IsDisabled);
public record PermissionsUpdateDto(List<int> PermissionIds);
